package org.BUPT.domain.service;

import org.BUPT.infrastructure.persistent.po.Answer;
import org.BUPT.infrastructure.persistent.po.Comment;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

@Service
public interface AnswerService {
    public Answer saveAnswer(Answer answer);
    public Answer getAnswer(int answerId);
    public boolean isAnswered(int questionId,int userId);
    public Set<Integer> getLikedUserId(int answerId);
    public boolean isAnswerLiked(int userId,int answerId);
    public void likeAnswer(int userId,int answerId);
    public void dislikeAnswer(int userId,int answerId);
    public List<Comment> getCommentsOfAnswer(int answerId);
}
